package cn.ainit.sys.print;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.ainit.sys.dz.entity.SysDzSource;
import cn.ainit.sys.print.entity.SysPrint;

@Service
@Transactional
public class PrintServiceImpl implements PrintService {

	private PrintDao printDao;
	@Resource
	public void setPrintDao(PrintDao printDao) {
		this.printDao = printDao;
	}

	@Override
	public List loadColumnsU(String dsId, String type, String flag, String uid)
			throws Exception {
		return printDao.loadColumnsU(dsId, type, flag, uid);
	}

	@Override
	public SysDzSource getSysDzSource(String dzId) throws Exception {
		return printDao.getSysDzSource(dzId);
	}

	@Override
	public String getShowNameVal(String sql) throws Exception {
		return printDao.getShowNameVal(sql);
	}

	@Override
	public SysPrint getPrintObj(String dsId, String name) throws Exception {
		return printDao.getPrintObj(dsId, name);
	}

	@Override
	public Object gePrintDataBySql(String sql,String pkVal)throws Exception {
		return printDao.gePrintDataBySql(sql,pkVal);
	}

	@Override
	public List getPrintMList(String sql, String pkVal, String config) {
		return printDao.getPrintMList(sql, pkVal, config);
	}
	
	@Override
	public List<Map<String, Object>> getPrintMMList(String sql) {
		// TODO Auto-generated method stub
		return printDao.getPrintMMList(sql);
	}

	@Override
	public List getPrintQueryData(String zSql) throws Exception {
		return printDao.getPrintQueryData(zSql);
	}
	@Override
	public Map<String, Object> getCompanyInfo() throws Exception {
		return printDao.getCompanyInfo();
	}

	@Override
	public List getsyscl(String dsid) {
		// TODO Auto-generated method stub
		return printDao.getsyscl(dsid);
	}
    @Override
    public Boolean countUpdate(HttpServletRequest request) {
        return 	printDao.countUpdate(request);
    }

}
